package acm.pta15;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

public class Test {
    public static void main(String[] args) {
        TreeSet<Integer> treeSet=new TreeSet<>();
        treeSet.add(10);
        treeSet.add(20);
        treeSet.add(30);
        treeSet.add(40);
        treeSet.add(50);
        treeSet.add(60);
        SortedSet<Integer> headSet = treeSet.tailSet(30);
        System.out.println(headSet);
        Map<Integer,Integer> map=new TreeMap<>();
        map.put(1,1);
        map.merge(2,5,Integer::max);
        System.out.println();
    }
    static DateFormat format = new SimpleDateFormat("HH:mm:ss");
    static {
        try {
            long time = format.parse("00:00:00").getTime();
            System.out.println(time);
        System.out.println(format.format(time+0)+" - "+format.format(time+1000*60));
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }
    }
}
